<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>#{page_title}</title>
		<script type="text/javacsript">
			if(document.location.href.match(/127.0.0.1:9421/)) document.write('<base href="http://127.0.0.1:9421/rsui/0/"/>');
		</script>
		<script type="text/javascript" src="locale/en-US.js"></script>
		<script type="text/javascript">
			if(navigator.language != "en-US"){
				// a literal closing script tag breaks the HTML parser.
				document.write("<script type='text/javascript' src='locale/" + navigator.language + ".js'></" + "script>");
			}
		</script>
		
		<link rel="stylesheet" type="text/css" href="screen.css" media="screen" />
		<script type="text/javascript" src="prototype.js"></script>
		<script type="text/javascript" src="jsapi.js"></script>
		<script type="text/javascript" src="inbrowser.js"></script>
		
		<script type="text/javascript">
			Event.observe(window, 'load', setTagline);
		
			function setTagline(){
				locale.taglines[0] += Math.round(Math.random() * 25 + 1960);
				$("tagline").innerHTML = locale.taglines[Math.floor(Math.random() * locale.taglines.length)];
			}
			
		</script>
	</head>
	<body>
		<div id="root">
			<div id="header">
				<div id="logo">
					<img src="images/header.png" alt="FoxTorrent">
					<div id="tagline"></div>
				</div>
			    <div id="global_stats">
					<div><span class="speedLabel">#{downloading_label} </span><span id="RS_DOWNLOAD_RATE">0</span></div>
					<div><span class="speedLabel">#{sharing_label} </span><span id="RS_SHARE_RATE">0</span></div>
					<div><input type="button" id="openFolderButton" value="#{open_download_folder}" /></div>
				</div>
			</div>
			<div id="note"></div>
			<div id="torrents"></div>
			<div id="none"></div>
		</div>
		<div id="feedback"><br/><br/><center>
		<table width="98%" bgcolor="#eeeeff" cellpadding="1"><tr><td>
		<table width="100%" bgcolor="#f3f3ff"><tr><td align="left">
		<b><font color="#333388">#{quick_advice_title}</font></b>
			<p>
			</p>
			<ul>
			<font size="2" color="#8888aa"><li>#{quick_advice_one}</font></li>
			<font size="2" color="#8888aa"><li>#{quick_advice_two}</font></li>
			<font size="2" color="#8888aa"><li>#{quick_advice_three} <a href=http://www.foxtorrent.com/help>#{quick_advice_four}</a></font></li>
			</ul>
			<p>
			
			</p>
		</td><td valign="top" align="right">
			<p>
				#{whats_new} <a href="http://foxtorrent.wordpress.com">#{see_blog}</a>
			</p>
			<p>
				#{getlisted}
				<a href="https://addons.mozilla.org/en-US/firefox/addon/4844">#{add_review}</a>
			</p>
			<p>
				#{needhost}
				<a href="http://upload.redswoosh.net">#{try_hosting}</a>
			</p>
			<p>
				#{problems}
				<a id="feedbackLink" href="SendFeedback">#{comments}</a>
				<a href="http://groups.google.com/group/foxtorrent/topics?gvc=2">#{questions}</a>
			</p>
		
		</td></tr></table>
		</td></tr></table>
		
	</div>
		<div id="feedbackOverlay">
			<div id="feedbackBox">
				<form action="">
					<p>
					<h1>#{send_feedback}</h1>
					#{please_check} <a href="http://www.foxtorrent.com/help">#{help}</a> #{and} <a href="http://code.google.com/p/foxtorrent/wiki/FAQ">#{faq}</a> #{before_posting}<br><br>
					<input type="text" id="feedbackEmail" value="#{email}"/><br/>
					<textarea id="feedbackText">#{enter_comment_here}</textarea>
					<div>
					<input type="button" value="Send Feedback" id="sendFeedbackButton"/>
					<input type="button" value="Cancel" id="cancelFeedbackButton"/>
					</div>
					</p>
				</form>
			</div>
			<div id="feedbackSending">#{sending_feedback}</div>
			<div id="feedbackSent">#{message_sent}</div>
		</div>
		<script type="text/javascript">
			$("feedbackOverlay").hide();
			var localeTemplate = new Template(document.body.innerHTML);
			document.body.innerHTML = localeTemplate.evaluate(locale);
			document.title = locale.page_title; // The template doesn't operate on the head.
		</script>
		<div id="feedbackScripts" style="display: none"></div>
	</body>
</html>
